package com.merry.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/view")
public class ViewController {

    @RequestMapping("/thymeleafView")
    public String testView(){
        return "test_view";
    }

    @RequestMapping("/testForward")
    public String testForward(){
        return "forward:/view/thymeleafView";
    }

    @RequestMapping("/testRedirect")
    public String testRedirect(){
        return "redirect:/view/thymeleafView";
    }
}
